package com.whlilong.jxc.mina.util;

import org.apache.mina.core.filterchain.IoFilter;
import org.apache.mina.filter.codec.ProtocolCodecFilter;
import org.apache.mina.filter.codec.serialization.ObjectSerializationCodecFactory;
import org.apache.mina.filter.logging.LoggingFilter;

public class ProtocolUtil{
   private static final ObjectSerializationCodecFactory factory = new ObjectSerializationCodecFactory();
   private static final ProtocolCodecFilter codecfilter = new ProtocolCodecFilter(factory);
   private static final LoggingFilter logfilter = new LoggingFilter();
   public static IoFilter getObjectCodecFilter(){
	   return codecfilter;
   }
   public static IoFilter getLoggingFilter(){
	   return logfilter;
   }
}
